#include "../include/FireworkRosebush.h"

#include <algorithm>
#include <iterator>

#include "../include/utilities.h"

void FireworkRosebush::initFireworkParticles() {
	Vector3 normal = getRandomNormal(-90, 90, 0, 360);
	std::uniform_real_distribution<float> radiusDis(50, 70);
	std::uniform_int_distribution<> bushCountDis(2, 30);
	std::vector<Vector3> rosebushPointsPos = getRosebushPos(m_pos, normal, radiusDis(m_gen), bushCountDis(m_gen));
	std::uniform_real_distribution<float> ratioDis(0.5, 0.7);
	std::vector<Vector3> speedList = getSpeedListFormPoslistWithRatio(m_pos, ratioDis(m_gen), rosebushPointsPos);
	Color color = getRandomColor();
	addNewBombs(m_pos, speedList, color, 1);
}
